[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Jeroen
yfont=11pt, style={\tt}] \defineenumeration [Code] [title=yes, alternative=empty, before=\startCountFramedText, after=\stopCountFramedText, left={\somenamedheadnumber{chapter}{current}.}] \starttext \startchapter [title=first] \startCode [title={The First Title}, refer

[NTG-context] Re: Framed Text with Chapter Numbers as Counter

2023-09-17 Thread Bruce Horrocks
e title. Amemd the \defineenumeration as follows: \defineenumeration [Counter] [title=yes, alternative=empty, before=\startCountFramedText, after=\stopCountFramedText, left={\somenamedheadnumber{chapter}{current}:}] — Bruce Horrock

Re: [NTG-context] number of chapters

2022-07-20 Thread Henning Hraban Ramm via ntg-context
Am 20.07.22 um 09:47 schrieb Taco Hoekwater: Ok, I can access the wiki via Tor and found \somenamedheadnumber{chapter}{current} \somenamedheadnumber{chapter}{last} These are expandable \someheadnumber[chapter][current] \someheadnumber[chapter][last] These are not \definecolor

Re: [NTG-context] number of chapters

2022-07-20 Thread Taco Hoekwater via ntg-context
justme.com says it would be >> just me.) > > Ok, I can access the wiki via Tor and found > > \somenamedheadnumber{chapter}{current} > \somenamedheadnumber{chapter}{last} These are expandable > > or > > \someheadnumber[chapter][current] > \someheadnumber[cha

Re: [NTG-context] number of chapters

2022-07-20 Thread Henning Hraban Ramm via ntg-context
*\namedstructurevariable{chapter}{number}/\numberofchapters, ] and use it for a thumb index... (I can’t access the wiki ATM; downforeveryoneorjustme.com says it would be just me.) Ok, I can access the wiki via Tor and found \somenamedheadnumber{chapter}{current} \somenamedheadnumber{chapter}{last

Re: [NTG-context] Metafun, difficulty with graphical element in the margin

2022-03-20 Thread Wolfgang Schuster via ntg-context
[textcolor] [white] \startuseMPgraphic{chapter-thumb} path chap_frame ; pair pos,a,b ; picture Chap ; if \somenamedheadnumber{chapter}{current} > 0 : curr_chap := \somenamedheadnumber{chapter}{current} ; else : curr_chap := 1 ;

Re: [NTG-context] Get Current Section Number

2022-01-09 Thread Pablo Rodriguez via ntg-context
the chapter number in order to set up the > conditional? Hi MIchael, this might do the trick: \starttext \dorecurse{5} {\chapter{Chapter \structurenumber} \dorecurse{5} {\section{Section \structurenumber} \doifelse{\somenamedheadnumber{chapter}{current}}{1} {Th

Re: [NTG-context] Unexpected float numbering in unnumbered subsubsection

2015-12-15 Thread Sytse Knypstra
numbering ('1.0', '2.0', etc) in \setupheadertexts [\somenamedheadnumber{section}{current}][...etc]. Sytse Knypstra On 15-12-15 09:45, Jan Willem Flamma <jwfregis...@icloud.com> wrote: I ran into the following issue related to figure/float numbering. I use numbered chapters, sections, subse

Re: [NTG-context] Unexpected float numbering in unnumbered subsubsection

2015-12-15 Thread Hans Hagen
=bychapter, prefix=chapter') and the section numbering ('1.0', '2.0', etc) in \setupheadertexts [\somenamedheadnumber{section}{current}][...etc]. fwiw: you can control numbering and prefixes at any level and for all constructs .. there are examples in the test suite Hans

Re: [NTG-context] Unexpected float numbering in unnumbered subsubsection

2015-12-15 Thread Sytse Knypstra
[\somenamedheadnumber{section}{current}][...etc]. fwiw: you can control numbering and prefixes at any level and for all constructs .. there are examples in the test suite Hans - Hans Hagen | PRAGMA ADE

Re: [NTG-context] Get rid of LuaTeX warning on duplicate destination identifier

2013-08-29 Thread Hans Hagen
\xdef\overview_current_headnumber{\somenamedheadnumber\overviewsection\c!current}% \setbox\nextbox\hbox{#1}% \ifx\overview_previous_headnumber\overview_current_headnumber \else \glet\overview_previous_headnumber\overview_current_headnumber \setbox\scratchbox\copy

Re: [NTG-context] Counter for section heads

2011-10-07 Thread Wolfgang Schuster
of sections at the current level (equivalent to \laststructurecounter[...]). \setuphead[section][textstyle=\tt,page=yes] \starttext \dorecurse{2} {\section{[[#1]]} \dorecurse{\numexpr#1+2\relax} {\subsection{[[#1-##1]]} \starttabulate \NC First \EQ \somenamedheadnumber

Re: [NTG-context] Counter for section heads

2011-10-07 Thread Aditya Mahajan
On Fri, 7 Oct 2011, Wolfgang Schuster wrote: \setuphead[section][textstyle=\tt,page=yes] \starttext \dorecurse{2} {\section{[[#1]]} \dorecurse{\numexpr#1+2\relax} {\subsection{[[#1-##1]]} \starttabulate \NC First \EQ \somenamedheadnumber{subsection}{first} \NC\NR \NC

Re: [NTG-context] last chapter number in Metapost

2010-01-18 Thread Hans Hagen
; fill fullcircle scaled 3cm shifted (skip,skip) ; StopPage ; \stopuseMPgraphic not expandable and typeset ... so you i'll add \somenamedheadnumber{chapter}{current} - Hans Hagen | PRAGMA ADE